﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Studio.Common.BaseClasses;
using System.ComponentModel;

namespace Renci.iRods.Studio.Modules.Explorer.Models
{
    public class MetadataModel : ModelBase
    {
        [DisplayName("ID"), ReadOnly(true), Browsable(true)]
        public long ID { get; private set; }

        [DisplayName("Namespace"), ReadOnly(true), Browsable(true)]
        public string Namespace { get; private set; }

        [DisplayName("Name"), ReadOnly(false), Browsable(true)]
        public string Name { get; set; }

        [DisplayName("Value"), ReadOnly(false), Browsable(true)]
        public string Value { get; set; }

        [DisplayName("Unit"), ReadOnly(false), Browsable(true)]
        public string Unit { get; set; }

        public MetadataModel(long id, string ns, string name, string value, string unit)
        {
            this.ID = id;
            this.Namespace = ns;
            this.Name = name;
            this.Value = value;
            this.Unit = unit;
        }

    }
}
